package com.carkeeper.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carkeeper.entity.BillPO;
import com.carkeeper.vo.BillVO;
import com.carkeeper.vo.Pager;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface BillService {
    void addBill(BillPO billPO);

    BillPO getBill(Long id);

    void delById(Long id);

    Page<BillPO> getBillPage(Integer page, Integer pagesize, Integer type,
                             String code, String storeName, Integer payState, String createTimeStart,
                             String createTimeEnd, Long storeId);

    BillPO getByStoreId(Long storeId);

    /**
     * 获取账单列表
     *
     * @param storeId  商家id
     * @param payState 账单支付状态
     * @return 账单列表
     */
    List<BillPO> findAll(Long storeId, Integer payState);
}
